<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body></body>
    <script type="text/javascript">
        var now = new Date();

        // document.write(now.toLocaleDateString());
        //
        // console.log(now.toLocaleString());
        // var str = now.getFullYear() + '-' + (now.getMonth() + 1) + '-' + now.getDate() + 'T23:59:59.999+08:00';
        // var now1 = new Date(str);
        // console.log(now1);


        var endmount = now.getMonth() + 1;
                        if (endmount < 10) {
                            endmount = "0" + endmount;
                        }
                        var endday = now.getDate();
                        if (endday < 10) {
                            endday = "0" + endday;
                        }
                        var endDateStr = now.getFullYear() + "-" + endmount + "-" + endday + "T23:59:59.999+08:00";
                        // console.log(endDateStr);
                        // console.log(new Date(endDateStr));

                        var now2 = new Date(endDateStr);
                        console.log(now2.getTime());
    </script>
</html>
